import React from 'react';
import { Router, Route, browserHistory } from 'react-router';

import index from './components/index';
import snake from './components/snake';
import Tetris from './components/Tetris';
import drag from './components/drag'

export default function Routes() {
  return (
    <Router history={browserHistory}>
        <Route path="/" component={index}></Route>
        <Route path="/snake" component={snake}></Route>
        <Route path="/tetris" component={Tetris}></Route>
        <Route path="/drag" component={drag}></Route>
      </Router>
  );
};